package com.bojiu.lawsearch.lawsearch.config;

import com.bojiu.lawsearch.lawsearch.model.OrderMessage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;

/**
 * @author: afdiao
 * @Date：2020/3/24 9:46
 * @Description:
 */
@Configuration
public class QueueConfig {

    @Bean
    public DelayQueue<OrderMessage> getQueue() {
        DelayQueue<OrderMessage> orderMessages = new DelayQueue<>();
        return orderMessages;
    }
}
